package kr.co.m2soft.model.elements
{
	import flash.xml.XMLDocument;
	import flash.xml.XMLNode;
	
	import kr.co.m2soft.model.BaseModel;
	import kr.co.m2soft.model.IBaseModelParser;

	public class TA extends BaseModel implements IBaseModelParser
	{
		private var _eid:int;
		private var _fi:int;
		private var _pt:int = 10;
		private var _cl:String = "#000000";
		private var _cb:int = 0;
		private var _ci:int = 0;
		private var _cu:int = 0;
		private var _cs:int = 0;
		private var _cr:int = 0;
		private var _sc:int = 100;
		private var _ls:int = 0;
		
		public function TA()
		{
		}
		
		public function parser():void
		{
			_eid = dataProvider.@id;
			_fi = dataProvider.@fi;
			_pt = dataProvider.hasOwnProperty("@pt") ? dataProvider.@pt : _pt;
			_cl = dataProvider.hasOwnProperty("@cl") ? dataProvider.@cl : _cl;
			_cb = dataProvider.hasOwnProperty("@cb") ? dataProvider.@cb : _cb;
			_ci = dataProvider.hasOwnProperty("@ci") ? dataProvider.@ci : _ci;
			_cu = dataProvider.hasOwnProperty("@cu") ? dataProvider.@cu : _cu;
			_cs = dataProvider.hasOwnProperty("@cs") ? dataProvider.@cs : _cs;
			_cr = dataProvider.hasOwnProperty("@cr") ? dataProvider.@cr : _cr;
			_sc = dataProvider.hasOwnProperty("@sc") ? dataProvider.@sc : _sc;
			_ls = dataProvider.hasOwnProperty("@ls") ? dataProvider.@ls : _ls;
			
			
		}
		
		public function get eid():int
		{
			return _eid;
		}

		public function set eid(value:int):void
		{
			_eid = value;
		}

		public function get fi():int
		{
			return _fi;
		}

		public function set fi(value:int):void
		{
			_fi = value;
		}
		[Inspectable(defaultValue="10" )]
		public function get pt():int
		{
			return _pt;
		}

		public function set pt(value:int):void
		{
			_pt = value;
		}
		
		[Inspectable(defaultValue="#000000" )]
		public function get cl():String
		{
			return _cl;
		}

		public function set cl(value:String):void
		{
			_cl = value;
		}
		
		[Inspectable(enumeration="0,1", defaultValue="0" )]
		public function get cb():int
		{
			return _cb;
		}
	
		public function set cb(value:int):void
		{
			_cb = value;
		}
		
		[Inspectable(enumeration="0,1", defaultValue="0" )]
		public function get ci():int
		{
			return _ci;
		}

		public function set ci(value:int):void
		{
			_ci = value;
		}
		
		[Inspectable(enumeration="0,1", defaultValue="0" )]
		public function get cu():int
		{
			return _cu;
		}

		public function set cu(value:int):void
		{
			_cu = value;
		}

		[Inspectable(enumeration="0,1", defaultValue="0" )]
		public function get cs():int
		{
			return _cs;
		}

		public function set cs(value:int):void
		{
			_cs = value;
		}
		
		[Inspectable(enumeration="0,1", defaultValue="0" )]
		public function get cr():int
		{
			return _cr;
		}

		public function set cr(value:int):void
		{
			_cr = value;
		}

		[Inspectable(defaultValue="100" )]
		public function get sc():int
		{
			return _sc;
		}

		public function set sc(value:int):void
		{
			_sc = value;
		}
		
		[Inspectable(defaultValue="0" )]
		public function get ls():int
		{
			return _ls;
		}

		public function set ls(value:int):void
		{
			_ls = value;
		}


	}
}